package as3.component.sound
{
	import flash.media.SoundMixer;
	
	/**
	 * 全局声音属性
	 * @author 周玉龙
	 * 二〇一一年十月二十六日 11:01:02
	 */	
	public class GlobalSoundProperty extends SoundProperty
	{
	
		//--------------------------------------------------------------------------
		//
		//  variable
		//
		//--------------------------------------------------------------------------

		public function GlobalSoundProperty()
		{
			super();
		}
	
		//--------------------------------------------------------------------------
		//
		//  property
		//
		//--------------------------------------------------------------------------

		//--------------------------------------------------------------------------
		//
		//  static
		//
		//--------------------------------------------------------------------------
		
		//--------------------------------------------------------------------------
		//
		//  public
		//
		//--------------------------------------------------------------------------
		/**
		 * 静音
		 */		
		public function mute():void
		{
			super.isMute = true;
			soundTransform.volume = 0;
			SoundMixer.soundTransform = soundTransform;
		}
		
		/**
		 * 取消静音
		 */		
		public function cancelMute():void
		{
			super.isMute = false;
			soundTransform.volume = 1;
			SoundMixer.soundTransform = soundTransform;
		}
		//--------------------------------------------------------------------------
		//
		//  private
		//
		//--------------------------------------------------------------------------

		//--------------------------------------------------------------------------
		//
		//  override
		//
		//--------------------------------------------------------------------------

		//--------------------------------------------------------------------------
		//
		//  event
		//
		//--------------------------------------------------------------------------
	}
}